# $Id: x2y2model.shar,v 1.2 2011/05/14 21:34:35 daw Exp $
# Makefile for x2y2model

all:	run_gk


FC = gfortran
FFLAGS = -O3

# define implicit rule for building .o from .f90
%.o : %.f90
	$(FC) $(FFLAGS) -c -o $@ $<

# files that supply basic subprograms, modules, etc.
OBJS = method.o md_vv.o constants.o emc.o rannums.o global_data.o hbrd.o

# dependencies

rannums.o:	rannums.f90

hbrd.o:	hbrd.f90

constants.o:	constants.f90 prec.o

global_data.o:	global_data.f90 prec.o

emc.o:	emc.f90 rannums.o prec.o

md_vv.o:	md_vv.f90 prec.o hbrd.o

method.o:	method.f90 emc.o rannums.o prec.o md_vv.o hbrd.o global_data.o

run_gk:	run_gk.f90 $(OBJS)
	$(FC) $(FFLAGS) -L/usr/include -lfftw3 -o run_gk run_gk.f90 $(OBJS)

clean:
	rm -f *.o *.mod

realclean:
	rm -f *.o *.mod run_gk1d














